<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp" %>
<%@ page import="org.test.once.model.Role" %>

<%
	Role role = (Role)request.getAttribute("role");
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改用户信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
<script type="text/javascript">
	function closewindow(){
	if(window.opener){
		window.opener.location.reload(true);
		window.close();
	}
}
</script>

  </head>
  <body>
    <center>
 <form action="RoleServlet" method="post">
	<input type="hidden" name="order" value="modify">
	<input type="hidden" name="roleId" value="<%=role.getId() %>"> 
	<TABLE class="tableEdit" border="0" align="center" cellspacing="1" cellpadding="0" style="width:580px;">
		<TBODY>
			<TR>
				<!-- 这里是添加、编辑界面的标题 -->
				<td align="center" class="tdEditTitle">修改用户信息</TD>
			</TR>
			<TR>
				<td>
				<!-- 主输入域开始 -->
	<table class="tableEdit" align="center" style="width:300px;" cellspacing="0" border="0" cellpadding="0">
		<tr>
		<td>用户名</td>			
			<td>
			<input type="text" name="rolename" value="<%=role.getName()%>"/>
			</td>
		</tr>
	</table>
	
				<!-- 主输入域结束 -->
				</td>
			</TR>
		</TBODY>
	</TABLE>
	
	<TABLE>
			<TR align="center">
				<TD colspan="3" bgcolor="#EFF3F7">
			<input type="submit" name="saveButton" 
				class="MyButton" value="保存信息"> 
			<input type="button" value="关闭" name="goback" id="goback" onclick="closewindow();">
			</TD>
			</TR>
	</TABLE>
</form>
</center>
  </body>
</html>
